import React from "react";
import { Outlet, useNavigate, useParams } from "react-router-dom";
import {Button} from 'antd'
const Floor:React.FC = () => {
    const navigate = useNavigate()
    const {floorId} = useParams()
    return (
        <div>
            <Button type="primary" onClick={()=>{navigate(`/home/${floorId}/987`)}}>Floor:跳转到详情</Button>
            <Button type="primary" onClick={()=>{navigate(`/category`)}}>Floor:跳转分类</Button>
            <Outlet/>
        </div>
    )
}
export default Floor
